import 'package:flutter/material.dart';

class CustomCard extends StatelessWidget{
  const CustomCard({super.key});

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 6,
      shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(16),
      ),
      clipBehavior:Clip.antiAlias,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Image.network( 'https://picsum.photos/300/200?random=1',
          height: 150,width: double.infinity,fit: BoxFit.cover),
          Padding(padding: const EdgeInsets.all(16),
          child: Column(crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text('Material Card',style: Theme.of(context).textTheme.titleLarge,),
              const SizedBox(height: 8),
              const Text( 'This is an example of a Material Design card '
                  'with custom styling and elevation.'),
            ],
          ),),
        ],
      ),

    );

  }

}
